package com.bwda.dsrs.filecenter.api;

import com.bwda.dsrs.base.centerbase.response.CentreCutPageResponse;
import com.bwda.dsrs.base.centerbase.response.CentreListResponse;
import com.bwda.dsrs.base.centerbase.response.ResponseEntity;
import com.bwda.dsrs.filecenter.api.clientappversion.datadict.DatadictCreateForm;
import com.bwda.dsrs.filecenter.api.clientappversion.datadict.DatadictQueryForm;
import com.bwda.dsrs.filecenter.api.clientappversion.datadict.DatadictVo;
import com.bwda.dsrs.filecenter.api.clientappversion.group.GroupQueryForm;
import com.bwda.dsrs.filecenter.api.clientappversion.group.GroupVo;
import com.bwda.dsrs.filecenter.api.clientappversion.org.*;
import com.bwda.dsrs.filecenter.api.clientappversion.user.UserForm;
import com.bwda.dsrs.filecenter.api.clientappversion.user.UserPo;
import com.bwda.dsrs.filecenter.api.clientappversion.user.UserQueryForm;
import com.bwda.dsrs.filecenter.api.clientappversion.user.UserVo;
import com.bwda.dsrs.filecenter.domain.api.DatadictUpdateForm;
import com.bwda.dsrs.filecenter.domain.exception.BusinessServiceException;
import com.bwda.dsrs.filecenter.domain.form.filespacesetting.FileSpaceSettingQueryForm;
import com.bwda.dsrs.systemservice.domain.po.datadict.DatadictPo;
import com.bwda.dsrs.systemservice.domain.po.userlevel.UserLevelPo;
import com.bwda.dsrs.systemservice.domain.vo.emailsettting.EmailSetttingVo;
import com.bwda.dsrs.systemservice.domain.vo.msgtemplate.MsgTemplateVo;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;

/**
 * @description:
 * @author: yangjun
 * @create: 2019-06-26 16:17
 */
@Component
public class OrgFallback implements OrgServiceApi {
    @Override
    public OrgForm queryOrg(String userCode) {
        return null;
    }

    @Override
    public OrgForm queryByIdOrg(long id) {
        return null;
    }

    @Override
    public List<OrgUserTreeForm> queryOrgUserTree() {
        return null;
    }

    @Override
    public List<OrgTreeForm> queryOrgTree() {
        return null;
    }

    @Override
    public List<OrgUserAdminForm> queryOrgAdmin(long id) {
        return null;
    }

    @Override
    public ResponseEntity<CentreCutPageResponse<UserPo>> queryPageList(UserQueryForm form) {
        return null;
    }

    @Override
    public ResponseEntity<CentreCutPageResponse<UserPo>> queryUserPageList(UserQueryForm form) {
        return null;
    }

    @Override
    public ResponseEntity<CentreCutPageResponse<GroupVo>> queryGroupPageList(GroupQueryForm groupQueryForm) {
        return null;
    }

    @Override
    public ResponseEntity<CentreListResponse<GroupVo>> queryGroupList(GroupQueryForm form) {
        return null;
    }

    @Override
    public ResponseEntity updateDatadict(DatadictUpdateForm form) {
        return null;
    }

    @Override
    public ResponseEntity<CentreListResponse<DatadictVo>> queryDatadictList(@Valid DatadictQueryForm form) {
        return null;
    }

    @Override
    public ResponseEntity<CentreListResponse<DatadictVo>> queryDatadictFullList(@Valid DatadictQueryForm form) throws BusinessServiceException {
        throw new BusinessServiceException("获取数据字典失败，请稍后再试");
    }

    @Override
    public ResponseEntity<DatadictVo> addDatadict(@Valid DatadictCreateForm form) {
        return null;
    }

    @Override
    public ResponseEntity queryDatadictByCode(String dataDictCode) {
        return null;
    }

    @Override
    public String getDataDictStringByCode(String dataDictCode) {
        return "";
    }

    @Override
    public List<DatadictPo> getDataDictValByTypeCode(String dataDictTypeCode) {
        return new ArrayList<>();
    }

    @Override
    public ResponseEntity updateMutexStatusByCode(String dataDictCode) {
        return null;
    }

    @Override
    public UserVo queryUserByUserCode(String userCode) throws BusinessServiceException {

        throw new BusinessServiceException("获取用户信息，请稍后再试");
    }

    @Override
    public List<UserForm> queryUserByCode(String userCodes) {
        return null;
    }

    @Override
    public List<UserForm> queryUserByUserCodeList(List<String> userCodes) {
        return new ArrayList<>();
    }

    @Override
    public List<OrgCreateForm> queryOrgById(String ids) {
        return new ArrayList<>();
    }

    @Override
    public List<GroupVo> queryGroupListByUserCode(String userCode) {
        return new ArrayList<>();
    }

    @Override
    public String queryOrgAdminCode(String userCode) {
        return null;
    }

    @Override
    public ResponseEntity<List<OrgTreeForm>> queryTreeChildren(Integer id) {
        return null;
    }

    @Override
    public List<OrgCreateForm> queryParentOrgByUserCode(String userCode) {
        return null;
    }

    @Override
    public ResponseEntity<CentreCutPageResponse<UserPo>> queryUserByOrgId(OrgQueryForm form) {
        return null;
    }

    @Override
    public String getDictValByCode(String dataDictCode) {
        return null;
    }

    @Override
    public List<UserLevelPo> queryUserLevelList() {
        return null;
    }

    @Override
    public ResponseEntity queryIsTq(String userCode) {
        return null;
    }

    @Override
    public EmailSetttingVo queryEmailSetting() {
        return null;
    }

    @Override
    public MsgTemplateVo getMsgTemplateByCode(String code) {
        return null;
    }

    @Override
    public List<String> queryRoleCodeList(String userCode) {
        return new ArrayList<>();
    }

    @Override
    public List<UserPo> queryUserForm(FileSpaceSettingQueryForm form) {
        return null;
    }

    @Override
    public int queryUserFormCount(FileSpaceSettingQueryForm form) {
        return 0;
    }
}